import java.io.*;
//得到最终的rsrp颜色对应值
public class tras {

    public static void main(String[] args) throws IOException {
        int[] tras=new int[242725];
        BufferedReader atb = new BufferedReader(new FileReader("D:\\idea\\Cesium_new1\\numdata.txt"));
        for (int i = 0; i <242725 ; i++) {
            tras[i]=(int)(Double.valueOf(atb.readLine())/100+140)*255/96;
            System.out.println(tras[i]);
        }

        atb.close();
        BufferedWriter bw=new BufferedWriter( new FileWriter("D:\\idea\\Cesium_new1\\tras_new.txt"));
        for (int i = 0; i < 242725; i++) {
            if(tras[i]==-496){
                tras[i]=256;
            }
            else if(tras[i]<0)
            {
                tras[i]=0;
            }

            bw.write(Integer.toString(tras[i]));
            bw.newLine();

        }
       bw.close();
    }
}
